import request from '@/utils/request'

// 添加维保计划
export function workDetailAdd(data) {
  return request({
    url: '/maintenance/miWorkDetail/add',
    method: 'post',
    params: {},
    data,
    port: { ENV_PORT: 8005 },
    ajaxType2: 'reqPost'

  })
}

// 删除维保计划
export function workDetailDelete(workId) {
  return request({
    url: '/maintenance/miWorkDetail/delete',
    method: 'delete',
    params: { workId },
    port: { ENV_PORT: 8005 },
    ajaxType2: 'reqDelete'

  })
}

// 查询维保计划列表
export function workDetailQueryList(pageIndex, pageSize) {
  return request({
    url: '/maintenance/miWorkDetail/queryList',
    method: 'get',
    params: { pageIndex, pageSize },
    port: { ENV_PORT: 8005 },
    ajaxType2: 'reqGet'

  })
}

// 修改维保计划
export function workDetailUpdate(data) {
  return request({
    url: '/maintenance/miWorkDetail/update',
    method: 'put',
    params: {},
    data,
    port: { ENV_PORT: 8005 },
    ajaxType2: 'reqPut'
  })
}

